import { createRouter, createWebHistory } from 'vue-router'
const routerHistory = createWebHistory()
const router = createRouter({
    history: routerHistory,
    routes: [
        // {
        //     path:"/",
        //     name:"login",
        //     component:()=>import("../views/login.vue"),
        //     meta:{title:"登录页"},
        // },
        // {
        //     path:"/",
        //     name:"index",
        //     component:()=>import("../views/index.vue"),
        //     meta:{title:"首页"},
        //     redirect:"/find",
        // },
        {
            path:"/",
            name:"find",
            component:()=>import("../views/find.vue"),
            meta:{title:"发现"},
        },
        {
            path:"/boke",
            name:"boke",
            component:()=>import("../views/boke.vue"),
            meta:{title:"播客"},
        },



        {
            path:"/about",
            name:"about",
            component:()=>import("../views/about.vue"),
            meta:{title:"关于"},
        },
        {
            path:"/setting",
            name:"setting",
            component:()=>import("../views/setting.vue"),
            meta:{title:"关于"},
        },
        {
            path:"/message",
            name:"message",
            component:()=>import("../views/message.vue"),
            meta:{title:"关于"},
        },
    ]
})
export default router